package com.avic.controller.feign.impl;

import com.avic.controller.feign.SystemServiceFeignService;
import com.avic.controller.feign.client.SystemServiceFeignClient;
import com.avic.controller.feign.client.request.CreateSystemLogReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author huangsheng on 2018/12/10
 */
@Service
public class SystemServiceFeignImpl implements SystemServiceFeignService {

    @Autowired
    private SystemServiceFeignClient systemServiceFeignClient;

    @Override
    public void createSystemLog(String logDetail, String userId) {
        CreateSystemLogReq createSystemLogReq = new CreateSystemLogReq();
        createSystemLogReq.setLogDetail(logDetail);
        createSystemLogReq.setUserId(userId);
        systemServiceFeignClient.createSystemLog(createSystemLogReq);
    }
}
